/**
 * 
 */
package com.msg.mng;

import java.sql.CallableStatement;
import java.util.HashMap;
import java.util.List;
import com.data.mng.Dao;
import com.opensymphony.xwork2.Action;

/**
 * @author Administrator
 *
 */
public class ShowMain implements Action {
	private List<HashMap<String, Object>> mapGoodsInfo = null;

	/**
	 * @return the mapGoodsInfo
	 */
	public List<HashMap<String, Object>> getMapGoodsInfo() {
		return mapGoodsInfo;
	}

	/**
	 * @param mapGoodsInfo the mapGoodsInfo to set
	 */
	public void setMapGoodsInfo(List<HashMap<String, Object>> mapGoodsInfo) {
		this.mapGoodsInfo = mapGoodsInfo;
	}

	public String execute() throws Exception {
		Dao d = new Dao();
		CallableStatement c = d.getCallableStatement("Call proc_getGoodsInfo(?,?,true,null,true,null,true,null,true,null," +
				"true,null,true,null,true,null,true,null,true,null,true,null,true,null)");
		c.setBoolean("p_mode1", true);
		c.setString("p_GoodsStyle", "12");
		mapGoodsInfo = d.execQuery(c);
		mapGoodsInfo.get(0).values().toString();
		if (mapGoodsInfo.size() < 1) {
		} else if (mapGoodsInfo.size() == 1) {
		}
		return SUCCESS;
	}
	
	
}
